package com.github.tommas.admintpl.dao;

import com.github.tommas.admintpl.bean.model.Permission;
import com.github.tommas.admintpl.bean.model.PermissionRestriction;
import com.github.tommas.admintpl.bean.model.RolePermission;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PermissionMapper {
    List<RolePermission> findPermissionsByRoles(List<Integer> roles);

    List<Permission> searchPermissions();

    List<PermissionRestriction> searchPermissionRestrictions();
}
